'''
Author: your name
Date: 2022-02-24 12:48:05
LastEditTime: 2022-02-24 12:50:41
LastEditors: Please set LastEditors
Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
FilePath: \other-algorithm-optimization\main-BPSO.py
'''
import BPSO
from env.environment import *
from GA import *
from BPSO.BPSO import *
# from scikitopt.MyGA import *
import time

if __name__ == "__main__":
    starttime = time.time()
    env = Env()
    a = BPSO(env, 104, 0, 0, 100, 20)
    a.run()
    endtime = time.time()
    print("Runtime = " + str(endtime - starttime))